#pragma once

#include "comm/types.h"
#include "comm/boot_info.h"
#include "comm/cpu_instr.h"

#define SECTOR_SIZE 512

//声明protect函数,本质是一个地址
void protect(void);
extern boot_info_t boot_info;
// 内存检测信息结构
typedef struct SMAP_entry 
{
    uint32_t BaseL; // base address uint64_t
    uint32_t BaseH;
    uint32_t LengthL; // length uint64_t
    uint32_t LengthH;
    uint32_t Type; // entry Type
    uint32_t ACPI; // extended
}__attribute__((packed)) SMAP_entry_t;


